
export default {
  data() {
    return {}
  },
  computed: {},
  mounted() { },
  methods: {
    getAllMenuList() {
      return new Promise((resolve, reject) => {
        this.$axios
          .get(`${this.$api.setting.roleApi.getAllMenu}`).then((res) => {
            const { data, code } = res.data
            if (code == 200) {
              resolve(data)
            }
          })
      })
    },
    getUpdateRole(params) {
      return new Promise((resolve, reject) => {
        this.$axios
          .post(this.$api.setting.roleApi.updateRole, params)
          .then((res) => {
            resolve()
          })
          .catch((res) => {
            reject(res)
          })
      })
    }
  },
  created() { },
}